package o;

import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;

public class cuz {
    protected static final SharedPreferences ˎ = cuo.ˎ().getSharedPreferences("realname_sp", 0);
    private static cuz ˏ = new cuz();

    public static cuz ˏ() {
        return ˏ;
    }

    public boolean ˋ(String str) {
        return ˎ.contains(str);
    }

    public void ॱ(String str, boolean z) {
        try {
            Editor edit = ˎ.edit();
            edit.putBoolean(str, z);
            edit.apply();
        } catch (Exception e) {
            cup.ˊ.ˊ("RealNamePreference", "putBoolean error!!key:" + str);
        }
    }

    public boolean ˊ(String str, boolean z) {
        try {
            z = ˎ.getBoolean(str, z);
        } catch (ClassCastException e) {
            ˎ.edit().remove(str).apply();
        }
        return z;
    }

    public void ˎ(String str) {
        try {
            Editor edit = ˎ.edit();
            edit.remove(str);
            edit.apply();
        } catch (Exception e) {
            cup.ˊ.ˊ("RealNamePreference", "remove error key:" + str);
        }
    }
}
